package com.example.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {
    //指定实体类主键
    @TableId("id")
    private Long userId;
    @TableField("name")
    private String username;
    private Integer age;
    private String email;
    private LocalDateTime createTime;//小驼峰
    private LocalDateTime updateTime;
}
